package com.learn.project2.service.admin.category;

import com.learn.project2.config.customException.NoChooseCategoryL1Exception;
import com.learn.project2.model.bo.admin.category.CategoryCreateBO;
import com.learn.project2.model.bo.admin.category.CategoryDeleteBO;
import com.learn.project2.model.bo.admin.category.CategoryUpdateBO;
import com.learn.project2.model.vo.admin.category.CategoryCreateVO;
import com.learn.project2.model.vo.admin.category.CategoryListVO;
import com.learn.project2.model.vo.admin.category.Categoryl1VO;

/**
 * \* Author: Valley
 * \* Date: 2022/1/7
 * \* Time: 20:06
 * \* Description:
 */

public interface CategoryService {
    CategoryListVO listCategory();

    Categoryl1VO getL1();

    CategoryCreateVO insertCategory(CategoryCreateBO categoryCreateBO) throws NoChooseCategoryL1Exception;

    void updateCategory(CategoryUpdateBO categoryUpdateBO);

    void deleteCategory(CategoryDeleteBO categoryDeleteBO);
}
